package base.chap2;

/**
 * ${DESCRIPTION}
 *
 * @author luoyalan
 * @date 2018/9/11
 */
public class TimeKeeper {
    private int hour;

    private int minute;

    private int second;

    public int getHour() {
        return hour;
    }

    public void setHour(int hour) {
        this.hour = hour;
    }

    public int getMinute() {
        return minute;
    }

    public void setMinute(int minute) {
        this.minute = minute;
    }

    public int getSecond() {
        return second;
    }

    public void setSecond(int second) {
        this.second = second;
    }

    void setTime(int hour, int minute, int second) {
        this.hour = hour;
        this.minute = minute;
        this.second = second;
    }

    void showTime() {
        System.out.println("hour:" + hour + ",¬minute:" + minute + ",second:" +second);
    }
}
